/** COPYRIGHT(C) 2008. Loc Phan. All Rights Reserved.
    A program that receive 10 strings, store them 
    in an array list, and print them in reversed order
    @author Loc Phan
    @version 1.01 2008-10-30
*/

import java.util.ArrayList;
import java.util.Scanner;

public class StringLoop
{
   public static void main(String[] args)
   {
      final int LIMIT = 10;
      Scanner input = new Scanner(System.in);
      ArrayList<String> stringList = new ArrayList<String>();
      
      String stringinput;
     
      for(int i=0;i<LIMIT;i++)
      { 
         System.out.println("Enter a string:");
         stringinput = input.nextLine();
         stringList.add(stringinput);
      }
      System.out.println();
      for(int i=(LIMIT-1);i>=0;i--)
      {
         System.out.println(stringList.get(i));
      }
   }
}
